package com.hh.flow.domain.tables;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;

/**
* 流程定义表tableDef
* default_columns中不能放ignore、isLarge、isLogicDelete
* @author hh
* @date 2023-05-02
*/
public class FlowDefinitionTableDef extends TableDef {

    public static final FlowDefinitionTableDef flow_definition = new FlowDefinitionTableDef("flow_definition");

    public QueryColumn id = new QueryColumn(this, "id");
    public QueryColumn flow_code = new QueryColumn(this, "flow_code");
    public QueryColumn flow_name = new QueryColumn(this, "flow_name");
    public QueryColumn version = new QueryColumn(this, "version");
    public QueryColumn is_publish = new QueryColumn(this, "is_publish");
    public QueryColumn from_custom = new QueryColumn(this, "from_custom");
    public QueryColumn from_path = new QueryColumn(this, "from_path");
    public QueryColumn create_by = new QueryColumn(this, "create_by");
    public QueryColumn create_time = new QueryColumn(this, "create_time");
    public QueryColumn update_by = new QueryColumn(this, "update_by");
    public QueryColumn update_time = new QueryColumn(this, "update_time");
    public QueryColumn del_flag = new QueryColumn(this, "del_flag");

    public QueryColumn[] default_columns = new QueryColumn[]{ id, flow_code, flow_name, version, is_publish, from_custom, from_path, create_by, create_time, update_by, update_time, };
    public QueryColumn[] all_columns = new QueryColumn[]{ id, flow_code, flow_name, version, is_publish, from_custom, from_path, create_by, create_time, update_by, update_time, del_flag};

    public FlowDefinitionTableDef(String tableName) {
        super(tableName);
    }
}
